#include "MainPage.h"
#include "AppRouter.h"
#include "PageMgr.h"

REGISTER_PAGE("Pages/Main", MainPage)

void MainPage::OnViewLoad() {
	m_view.Create(m_body);		
}

void MainPage::OnViewShow() {
	m_view.StartElemAnim();
}

void MainPage::OnScrSlideLeft(){
	GoTo("Pages/Map", anim_type_em::LOAD_ANIM_MOVE_LEFT);
}
void MainPage::OnScrSlideRight() {
	GoTo("Pages/SunMoon", anim_type_em::LOAD_ANIM_MOVE_RIGHT);
}
void MainPage::OnScrSlideUp() {
	GoTo("Pages/ToolBox", anim_type_em::LOAD_ANIM_OVER_TOP);
}
void MainPage::OnScrSlideDown() {
	GoTo("Pages/Sport", anim_type_em::LOAD_ANIM_OVER_BOTTOM);
}